/**
 * 个人主页-作品-中间层
 */
import React, { Component } from "react" ;
import { connect } from "react-redux" ;
import MineFilmsBox from "./MineFilmsBox";

class FilmsListContainer extends Component{
    constructor(props){
        super(props) ;
    }

    render(){
        return(

            <div>
                {
                    this.props.list.map((data,i)=>{
                        return <MineFilmsBox
                            key={i}
                            filmId={data.filmId}
                            videoLength={data.videoLength}      //视频时长
                            title={data.title}                  //视频标题
                            videoImgUrl={data.videoImgUrl}      //视频封面
                            categoryName={data.categoryName}    //视频类型
                            type={data.type}
                        />
                    })
                }
            </div>
        )
    }
}


const FilmsList = connect()(FilmsListContainer) ;

export { FilmsList as default } ;